<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<%@ page import="org.springframework.context.ApplicationContext" %>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="net.muchine.core.dao.user.UserDao" %>
<%@ page import="net.muchine.core.sample.HelloSpring" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
This is test!!
<br>
<%
ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());
out.println("context: " + context);

UserDao dao = context.getBean(UserDao.class);
out.println("dao: " + dao);

out.println("<br>");

HelloSpring hello = context.getBean(HelloSpring.class);
out.println(hello.sayHello("sejoon"));
%>
</body>
</html>